Optimal. Leaf size=34 \[ \frac {\log (\sin (c+d x))}{a d}-\frac {\log (a+b \sin (c+d x))}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {2800, 36, 29,
31} \begin {gather*} \frac {\log (\sin (c+d x))}{a d}-\frac {\log (a+b \sin (c+d x))}{a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 2800
Rubi steps
\begin {align*} \int \frac {\cot (c+d x)}{a+b \sin (c+d x)} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{x (a+x)} \, dx,x,b \sin (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \frac {1}{x} \, dx,x,b \sin (c+d x)\right )}{a d}-\frac {\text {Subst}\left (\int \frac {1}{a+x} \, dx,x,b \sin (c+d x)\right )}{a d}\\ &=\frac {\log (\sin (c+d x))}{a d}-\frac {\log (a+b \sin (c+d x))}{a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 34, normalized size = 1.00 \begin {gather*} \frac {\log (\sin (c+d x))}{a d}-\frac {\log (a+b \sin (c+d x))}{a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.12, size = 33, normalized size = 0.97
method | result | size |
derivativedivides | \(\frac {-\frac {\ln \left (a +b \sin \left (d x +c \right )\right )}{a}+\frac {\ln \left (\sin \left (d x +c \right )\right )}{a}}{d}\) | \(33\) |
default | \(\frac {-\frac {\ln \left (a +b \sin \left (d x +c \right )\right )}{a}+\frac {\ln \left (\sin \left (d x +c \right )\right )}{a}}{d}\) | \(33\) |
risch | \(\frac {\ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{d a}-\frac {\ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+\frac {2 i a \,{\mathrm e}^{i \left (d x +c \right )}}{b}-1\right )}{d a}\) | \(57\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 33, normalized size = 0.97 \begin {gather*} -\frac {\frac {\log \left (b \sin \left (d x + c\right ) + a\right )}{a} - \frac {\log \left (\sin \left (d x + c\right )\right )}{a}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 31, normalized size = 0.91 \begin {gather*} -\frac {\log \left (b \sin \left (d x + c\right ) + a\right ) - \log \left (-\frac {1}{2} \, \sin \left (d x + c\right )\right )}{a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\cot {\left (c + d x \right )}}{a + b \sin {\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 6.18, size = 35, normalized size = 1.03 \begin {gather*} -\frac {\frac {\log \left ({\left | b \sin \left (d x + c\right ) + a \right |}\right )}{a} - \frac {\log \left ({\left | \sin \left (d x + c\right ) \right |}\right )}{a}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.36, size = 48, normalized size = 1.41 \begin {gather*} \frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )-\ln \left (a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+2\,b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+a\right )}{a\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________